package com.chinasofti.java8.demo;

import org.junit.Test;

public class TestLambda {
    @Test
    public  void test1(){
        Integer num = opreation(100, (x)-> x * x);
        System.out.println("num = " + num);
        Integer num1 = opreation(200, (y)-> y + 200);
    }
    public  Integer opreation(Integer num,MyFun mf){
        return mf.getValue(num);
    }
}
